<?php

Class Session{
    private static $started = false;
	
	public static function start(){
		if (false == self::$started){
			session_start();
			self::$started = true;
		}
		return true;
	}
	
	public static function get($name){
		if (false == self::$started){
			self::start();
		}
		if (empty($_SESSION[$name])){
			return false;
		}else{
			return $_SESSION[$name];
		}
	}
	
	public static function set($name,$value){
		if (false == self::$started){
			self::start();
		}
		$_SESSION[$name] = $value;
	}
}